<template>
  <div class=''>我是孩子
        <input type="text" v-model='array'>
        <span>{{abc}}</span>
        <select name="" id="">
          <option value="" v-for="item in data" :key="item">{{item.name}}</option>
        </select>
  </div>

</template>

<script>
export default {
  name: 'MyComponent',
  props: ['array', 'abc', 'data'],
  data () {
    return {
    }
  },
  methods: {
    dayin () {
      var name = '张三'
      var abc = {
        name: '李四',
        sayName () {
          console.log(this.name)
        }
      }
      console.log(name)
      console.log(abc.sayName, 1)
    }
  },
  computed: { },
  created () {
    // console.log(this.array, this.data)
    this.dayin()
  },
  mounted () { }
}
</script>

<style scoped lang='less'></style>
